home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Palettes
/
CustomMenuPalette
/
CustomMenu
/
CustomMenuPalette.m
< prev
next >
Wrap
Text File
|
1995-09-10
|
1KB
|
45 lines
//
// Source file : CustomMenuPalette.m
// Created by : gideon@berd
// Created on : Fri Sep 8 09:36:15 NZST 1995
// RCS File : $Source: /Ramoth/Black.Albatross/CVS/CustomMenu/CustomMenuPalette.m,v $
// Last modified : $Date: 1995/09/10 22:38:01 $
// Last modified by : $Author: gideon $
// Current Revision : $Revision: 1.1.1.1 $
//
static const char RCSId[] = "$Id: CustomMenuPalette.m,v 1.1.1.1 1995/09/10 22:38:01 gideon Exp $";
#import "CustomMenuPalette.h"
#import "CustomMenu.subproj/DraggableMenu.h"
@implementation CustomMenuPalette
- (const char *)version
{
return RCSId;
}
- finishInstantiate
{
id idBundle;
id idImage;
char buf[MAXPATHLEN + 1];
draggableMenuObject = [[DraggableMenu alloc] init];
[self associateObject:draggableMenuObject
type:IBObjectPboardType with:customMenuButton];
idBundle = [NXBundle bundleForClass:[self class]];
[idBundle getPath:buf forResource:"CustomMenu" ofType:"tiff"];
idImage = [[NXImage alloc] initFromFile:buf];
[customMenuButton setImage:idImage];
[super finishInstantiate];
return self;
}
@end